from django import forms
from models import Message

class CreateMessageForm(forms.ModelForm):
    parent_message = forms.IntegerField(required=False,widget = forms.HiddenInput())
    class Meta:
        model = Message
        exclude = ('parent_message', 'time')